Dynomotion

Group: DynoMotion Message: 929 From: likleong Date: 2/20/2011
Subject: Mach 3 motor pin number
Hi TK,

I am using the KFLOP with Mach3 in step/dir mode and I have the following questions regarding to the step/dir generator and PIN number setting in Mach3:

1. Physically, I want to use step/dir 5-7 (IO38-IO43) to drive the XYZ axis stepper driver. How could I set this in Mach initialize program? Is following mapping correct?

ch0->OutputChan0=13
ch1->OutputChan0=14
ch2->OutputChan0=15

2. In Mach3's motor output setting, what pin/port numbers should I input to XYZ axis? Do I need to enable the printer port #1 as well?


Best regards,
Benny.
Group: DynoMotion Message: 930 From: Tom Kerekes Date: 2/20/2011
Subject: Re: Mach 3 motor pin number
Hi Benny,
 
#1 yes that would be correct to drive the pins as LVTTL signals
#2 There is no need to define the Step/Dir pins in Mach3.
 
Regards
TK
 

Group: DynoMotion Message: 931 From: likleong Date: 2/22/2011
Subject: Re: Mach 3 motor pin number
Hi TK,

Thanks, then how about the following setting in the C init program for mach3?

ch0->Vel=100.000000;
ch0->Accel=1000.000000;
ch0->Jerk=10000.000000;

ch0->FFAccel=0.000000;
ch0->FFVel=0.000000;

ch0->invDistPerCycle=1.000000;


For the above parameters, what is the proper value, as they also defined in Mach3, are they being overrided by the setting in Mach3?

Best regards,
Benny.

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Benny,
>
> #1 yes that would be correct to drive the pins as LVTTL signals
>
> #2 There is no need to define the Step/Dir pins in Mach3.
>
> Regards
> TK
>
>
>
>
> ________________________________
> From: likleong <likleong@...>
> To: DynoMotion@yahoogroups.com
> Sent: Sun, February 20, 2011 2:46:28 AM
> Subject: [DynoMotion] Mach 3 motor pin number
>
> ?
> Hi TK,
>
> I am using the KFLOP with Mach3 in step/dir mode and I have the following
> questions regarding to the step/dir generator and PIN number setting in Mach3:
>
> 1. Physically, I want to use step/dir 5-7 (IO38-IO43) to drive the XYZ axis
> stepper driver. How could I set this in Mach initialize program? Is following
> mapping correct?
>
> ch0->OutputChan0=13
> ch1->OutputChan0=14
> ch2->OutputChan0=15
>
> 2. In Mach3's motor output setting, what pin/port numbers should I input to XYZ
> axis? Do I need to enable the printer port #1 as well?
>
> Best regards,
> Benny.
>
Group: DynoMotion Message: 932 From: Tom Kerekes Date: 2/22/2011
Subject: Re: Mach 3 motor pin number
Hi Benny,
 
When Mach3 is generating the motion it uses its "Motor Tuning" motion profile parameters.  But when jogging and when commanding motion from a KFlop C Program ie Homing, then these Jerk, Accel, and Vel parameters will be used.  To use the same rates as Mach3 convert the values in Mach3 from User Units to Steps.  (Also convert minutes to seconds).  Since Mach3 has no Jerk Limit (always uses infinite Jerk) set Jerk to a big number (ie 10X~100X the Accel value).
 
Velocity and Acceleration Feedforward values only are applicable for servos and have no Mach3 equivalent.  They are not applicable for Step/Dir drives just leave them at zero.
 
Similarly invDistPerCycle is only used for commutating brushless DC motors or when driving motors in "Microstepping Mode" so it is no concern for you.   Microstepping mode is different than Step/Dir mode (even though Step pulses may be connected to a micro stepping amplifier).  Microstepping mode is used with our SnapAmp to directly drive sinusoidal currents to Stepper Motors.
 
I hope this helps.
Regards
TK